package com.twu.biblioteca;

public class Book {
    private String bookId;
    private String bookName;
    private boolean isReserve;

    public Book(String bookId, String bookName) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.isReserve = false;
    }

    public String getBookId() {
        return bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public boolean reserveBook() {
        if (this.isReserve == false) {
            this.isReserve = true;
            return true;
        } else {
            return false;
        }
    }

}
